<%-- 
    Document   : newjsp
    Created on : 14 juin 2012, 02:00:24
    Author     : tridust
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <c:if test="${param['action'] == 'listerLesDisques'}" >  
            <div id="list-user">
                <h2>Liste des disques</h2>
                <tbody>
                        <c:forEach var="u" items="${requestScope['listeDesDisques']}">  
                            <div class="film" id="${u.id}">
                                <div>${u.titre}</div>
                                <IMG SRC="${u.pochette}" WIDTH="140" HEIGHT="200">
                                <center>${u.prix}</center>
                                <form action="ServletPanier" method="get">
                                    <input type="hidden" name="idFilm" value="${u.id}"/>
                                    <input type="hidden" name="action" value="ajouterAuPanier"/> 
                                    <center><input type="submit" name="submit" value="Ajouter" ></center>
                                </form>
                            </div>
                        </c:forEach>  

                <c:if test="${requestScope['depNext'] != '0'}" > 
                    <div class="nav-next">
                        <a href="ServletDisques?action=listerLesDisques&dep=${requestScope['depNext']}&type=next">Next</a>
                    </div>
                </c:if> 
                <c:if test="${requestScope['depPrev'] >= '0'}" > 
                    <div class="nav-prev">
                        <a href="ServletDisques?action=listerLesDisques&dep=${requestScope['depPrev']}&type=prev">Prev</a>
                    </div>
                </c:if>
            </div>
        </c:if>
</body>
</html>
